package main

import (
	"flag"
	"fmt"
	"mytest/Internal/server"
	"mytest/initialize/database"
)

func main() {
	var mysql string
	flag.StringVar(&mysql, "dbType", "mysql", "mysql or sqlite")
	flag.Parse()
	database.InitRedis()

	e := database.InitDatabsae(mysql)
	if e != nil {
		panic(e)
	}

	e = server.SyncInitHTTP("8888")
	fmt.Println("err:", e)
}
